package com.zsr.eduservice.client;

import com.zsr.commonutils.entity.vo.UcenterMemberInfoCommonVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户登录模块微服务发现
 * @author zsr
 * @date 2021/6/22 17:35
 */
@FeignClient(name ="service-ucenter", fallback = UcenterFileDegradeFeignClient.class)
@Component
public interface UcenterClient {

    @GetMapping(value = "/educenter/ucenter/getInfoUc/{id}")
    UcenterMemberInfoCommonVo getInfo(@PathVariable("id") String id);
}
